<script>
    // 对象copy
    // 定义对象
    let user = {
        "username": 'wzd',
        "age": 12
    };
    let copyuser = {
        ...user
    }
    console.log(copyuser);

    // 对象合并
    let name = {"name":"fx"};
    let ages = {"ages":19};
    let person = {...name,...ages,...user};
    console.log(person);
</script>